﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

namespace JSOCTNet.IBIZ
{
    public class FactorySendFile
    {
        public static ISendFile CreateISendFile()
        {
            ISendFile iSendFile = null;
            try
            {
                string dllPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "JSOCTNet.BIZ.SendFile.dll");
                string className = "JSOCTNet.BIZ.SendFile";
                iSendFile = (ISendFile)Assembly.LoadFile(dllPath).CreateInstance(className);
            }
            catch (Exception ex)
            {

            }
            return iSendFile;
        }
    }
}
